package com.boot2523.myredis.r3;

import redis.clients.jedis.Jedis;

public class R1 {
    public static void main(String[] args) {
        Jedis j=new Jedis();
        //一条新闻，多人点赞
//        System.out.println(j.lpush("news","tom","mary","jack"));
        //获取点赞人数
        System.out.println(j.lrange("news",0,-1).size());
        //取出一个数据
        System.out.println(j.lpop("news"));
    }
}
